<?php

/**
 * Description of SiteMenu
 *
 * @author LongLT
 */
class SiteMenu extends CWidget {

    public $items = array('');

    public function run() {
    	$currController 	= Yii::app()->controller->id;
    	$currController 	= ($currController != '') ? $currController : 'site';

    	$listMenu		= array(
    		'site'		=> array(
    						'item' 	=> 'Trang chủ',
    						'class'	=> 'home',
    					),
    		'product'	=> array(
    						'item' 	=> 'Sản phẩm',
    						'class'	=> 'portfolio',
    					),
    		'logo'	=> array(
    						'item' 		=> 'logo',
    						'class'		=> 'logo',
    						'controller'=> 'site',
    					),
    		'gallery'	=> array(
    						'item' 	=> 'Thư viện',
    						'class'	=> 'blog',
    					),
    		'contact'	=> array(
    						'item' 	=> 'Liên hệ',
    						'class'	=> 'about',
    					),
    	);

        $this->render('SiteMenu', compact('listMenu', 'currController'));
    }

}
